<template>
    <div class="box">
        <div class="head">
            <div class="left">
                <p>食在当季</p>
                <p>赏期推荐</p>
            </div>
            <div class="right">
                查看全部<span class="iconfont icon-youjiantou1"></span>
            </div>
        </div>
        <div class="card">
            <div class="top">
                <img src="@/assets/images/3.jpg" alt="">
                <p>“地标名品，原切黄牛肉”</p>
            </div>
            <div class="main">
                <img src="@/assets/images/4.jpg" alt="">
                <div class="item">
                    <h4>阳信牛肉 原切黄牛牛腩 1kg</h4>
                    <span>店长每日精选</span>
                    <p>省14元</p>
                    <div class="gouwuche">
                        <div class="money">
                            <span>￥</span>
                            <span>145</span>
                            <span>/袋</span>
                            <span>￥159</span>
                        </div>
                        <p class="iconfont icon-gouwuche p1"></p>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent} from 'vue'

export default defineComponent({
    setup() {

        // const List = reactive({
        //     img:require("@/assets/images/3.jpg"),
        //     src:require("@/assets/images/4.jpg"),
        //     gouwu:require('@/assets/images/5.jpg'),
        //     name:'"地标名品，原切黄牛肉"',
        //     title:'阳信牛肉 原切黄牛牛腩 1kg',

        // })
        return {
            // List,
        }
    }
})
</script>

<style scoped>
.box{
    background-image: linear-gradient(#FDC39E 0%,#FFDAC7 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.head{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #DE8D27;
    font-size: 18px;
}
.head .left{
    display: flex;
    align-items: center;
}
.head .left p:first-child{
   
    font-size: 22px;
    font-weight: 800;
}
.head .left p:last-child{
    width: 70px;
    line-height: 20px;
    border-radius: 20px;
    background-color: #FA954B;
    color: white;
    font-size: 14px;
    text-align: center;
}
.card{
    width: 80%;
    height: 140px;
    background-color: white;
    border-radius: 20px;
    border: 2px solid #F1DDD8;
    overflow: hidden;
    margin-bottom: 0;
}
.card .top{
    height: 30px;
    color: #C49E59;
    border: 2px solid #F8F4FA;
    display: flex;
    align-items: center;

}
.card .top img{
    width: 26px;
    height: 26px;
}
.card .main{
    display: flex;

}
.card .main img{
    width: 40%;
    height: 100px;
}
.card .main .item span{
    color: #D8CAA0;
    font-size: 16px;
}
.card .main .item p{
    width: 50px;
    height: 20px;
    font-size: 14px;
    color: #E76453;
    border: 1px solid black;
}
.card .main .item .gouwuche{
    display: flex;
    justify-content: space-around;
}
.card .main .item .gouwuche .money span:first-child{
    color: #E76453;
}
.card .main .item .gouwuche .money span:nth-child(2){
    font-size: 18px;
    color: #E76453;
}
.card .main .item .gouwuche .money span:nth-child(4){
    text-decoration: line-through;
}
.card .main .item .gouwuche .p1{
    width: 20px;
    height: 20px;
    background-color: blue;
    color: white;
    border-radius: 50%;
}
</style>